import { ModuleIcon, AppIcon, DashboardIcon, UserIcon, TaskIcon, ArticleIcon, CurrencyExchangeIcon, Shop2Icon, PersonalInformationIcon, UsergroupIcon, QuestionnaireIcon, ChatBubble1Icon, ChartIcon, MenuIcon } from 'tdesign-icons-vue';
import Layout from '@/layouts/index.vue';

export default [
  // {
  //   path: '/dashboard',
  //   component: Layout,
  //   redirect: '/dashboard/base',
  //   name: 'dashboard',
  //   meta: {
  //     title: '仪表盘',
  //   },
  //   children: [
  //     {
  //       path: 'base',
  //       name: 'DashboardBase',
  //       component: () => import('@/views/dashboard/base/index.vue'),
  //       meta: { title: '概览仪表盘', icon: DashboardIcon },
  //     },
  //     {
  //       path: 'detail',
  //       name: 'DashboardDetail',
  //       component: () => import('@/views/dashboard/detail/index.vue'),
  //       meta: { title: '统计报表', icon: ChartRingIcon },
  //     },
  //   ],
  // },
	{
    path: '/bi',
    component: Layout,
    redirect: '/bi/data-analysis',
    name: 'BI',
    meta: {
      title: '数据',
      icon: ChartIcon,
    },
    children: [
      {
        path: 'data-analysis',
        name: 'BiDataAnalysis',
        // component: () => import('@/views/data/index.vue'),
        component: () => import('@/views/dashboard/base/index.vue'),
        meta: { title: '数据分析', icon: ChartIcon },
      },
    ],
  },
	{
		path: '/knowledge',
		name: 'Knowledge',
		component: Layout,
		meta: { title: '知识', icon: ArticleIcon },
		children: [
			{
				path: 'catalog',
				name: 'KnowledgeCatalog',
				component: () => import('@/views/knowledge/catalog/index.vue'),
				meta: { title: '目录知识', icon: ArticleIcon },
			}
			,
			{
				path: 'recommend',
				name: 'KnowledgeRecommend',
				component: () => import('@/views/knowledge/recommend/index.vue'),
				meta: { title: '推荐知识', icon: ArticleIcon }
			}
		]
	},
  {
    // 运营
    path: '/operation',
    component: Layout,
    redirect: '/operation/questionnaire',
    name: 'operation',
    meta: {
      title: '运营',
      icon: DashboardIcon,
    },
    children: [
      // 用户管理、任务管理、内容管理、积分兑换、问卷管理
			{
				path: 'questionnaire',
				name: 'OperationQuestionnaire',
				component: () => import('@/views/operation/questionnaire/index.vue'),
				meta: { title: '问卷管理', icon: QuestionnaireIcon, className: 'wujie-container' },
			},
			{
				path: 'disease',
				name: 'OperationDisease',
				component: () => import('@/views/operation/disease/index.vue'),
				meta: { title: '疾病管理', icon: ModuleIcon },
			},
      {
        path: 'mission',
        name: 'OperationMission',
        component: () => import('@/views/mission/index.vue'),
        meta: { title: '任务管理', icon: TaskIcon },
      },
			{
        path: 'goods',
        name: 'OperationGoods',
        component: () => import('@/views/goods/index.vue'),
        meta: { title: '商品管理', icon: AppIcon },
      },
      {
        path: 'exchange',
        name: 'OperationExchange',
        component: () => import('@/views/points-exchange/index.vue'),
        meta: { title: '积分兑换', icon: CurrencyExchangeIcon },
      },
			{
        path: 'user',
        name: 'OperationUser',
        component: () => import('@/views/operation/user/index.vue'),
        meta: { title: '用户管理', icon: UserIcon },
      },
			// 用户反馈
			{
				path: 'feedback',
				name: 'OperationFeedback',
				component: () => import('@/views/feedback/index.vue'),
				meta: { title: '用户反馈', icon: ChatBubble1Icon },
			}
    ],
  },
  {
    path: '/system',
    component: Layout,
    redirect: '/system/tenant',
    name: 'system',
    meta: {
      title: '系统管理',
      icon: DashboardIcon,
    },
    children: [
			// 广告管理、商品管理
      {
        path: 'account',
        name: 'SystemAccount',
        // component: () => import('@/views/system/account/index.vue'),
				component: () => import('@/views/empty/index.vue'),
        meta: { title: '账户管理', icon: UsergroupIcon },
      },
      {
        path: 'tenant',
        name: 'SystemTenant',
        component: () => import('@/views/system/tenant/temp-index.vue'),
        meta: { title: '组织管理', icon: Shop2Icon },
      },
      {
        path: 'role',
        name: 'SystemRole',
        // component: () => import('@/views/system/role/index.vue'),
				component: () => import('@/views/empty/index.vue'),
        meta: { title: '角色管理', icon: PersonalInformationIcon },
      },
      {
        path: 'menus',
        name: 'SystemMenus',
        // component: () => import('@/views/system/menus/index.vue'),
				component: () => import('@/views/empty/index.vue'),
        meta: { title: '菜单管理', icon: MenuIcon },
      }
    ],
  },
];
